From 35e6103a6876e68a7e59898554932415162ee804 Mon Sep 17 00:00:00 2001 From: "dykman@us.ibm.com" Date: Sun, 20 Nov 2005 15:37:08 +0100 Subject: [PATCH] 1) "brctl show" has no parameters. 2) Add a -n flag to iptables -L to skip DNS lookups --- tools/examples/vif-bridge | 4 ++-- tools/examples/vif-common.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/examples/vif-bridge b/tools/examples/vif-bridge index 7c8219b9ca..a4f6bb0e7f 100755 --- a/tools/examples/vif-bridge +++ b/tools/examples/vif-bridge @@ -48,9 +48,9 @@ fi case "$command" in online) - if brctl show "$bridge" | grep "$vif" >&/dev/null + if brctl show | grep "$vif" >&/dev/null then - log debug "$vif already attached to $bridge" + log debug "$vif already attached to a bridge" exit 0 fi diff --git a/tools/examples/vif-common.sh b/tools/examples/vif-common.sh index f19a9790ff..a8750f94b4 100644 --- a/tools/examples/vif-common.sh +++ b/tools/examples/vif-common.sh @@ -82,7 +82,7 @@ function handle_iptable() # binary is not sufficient, because the user may not have the appropriate # modules installed. If iptables is not working, then there's no need to do # anything with it, so we can just return. - if ! iptables -L >&/dev/null + if ! iptables -L -n >&/dev/null then return fi -- 2.30.2